package com.wodsy.phoenix.dataobject.orderc.model;

import com.wodsy.phoenix.dataobject.base.PhoenixObject;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

/**
 * OrderMergerLog entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "tb_order_merger_log", catalog = "orderc")
public class OrderMergerLog extends PhoenixObject {

	// Fields

	private Integer id;
	private Long orderId;
	private Long mergerId;
	private Date createTime;

	// Constructors

	/** default constructor */
	public OrderMergerLog() {
	}

	/** full constructor */
	public OrderMergerLog(Integer id, Long orderId, Long mergerId,
			Date createTime) {
		this.id = id;
		this.orderId = orderId;
		this.mergerId = mergerId;
		this.createTime = createTime;
	}

	// Property accessors
	@Id
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "order_id", nullable = false)
	public Long getOrderId() {
		return this.orderId;
	}

	public void setOrderId(Long orderId) {
		this.orderId = orderId;
	}

	@Column(name = "merger_id", nullable = false)
	public Long getMergerId() {
		return this.mergerId;
	}

	public void setMergerId(Long mergerId) {
		this.mergerId = mergerId;
	}

	@Column(name = "create_time", nullable = false, length = 19)
	public Date getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

}